package com.cj.springtest2.service.impl;

import com.cj.springtest2.service.IHelloService;
import org.springframework.stereotype.Service;

import java.util.Date;
@Service()
public class HelloServiceImpl implements IHelloService {
	
	private String msg;
	
	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String sayHi() {
		return "当前时间：" + new Date() + " msg: " + msg;
	}

}
